[<<Previous Entry]
[^^Up^^]
[Next Entry>>]
[Menu]
[About The Guide]
outportb() Output byte to a Hardware Port (Macro)
#include <dos.h>
void outportb(port,byte);
int port; Specified port
unsigned char byte; Byte to be output
outportb() is a macro that writes the byte given by 'byte' to the
output port specified by 'port'.
Returns: Nothing
Portability: Unique to 8086 family of processors.
-------------------------------- Example ---------------------------------
The following statements write a byte to port 'x'.
#include <dos.h> /* for outportb */
main()
{
char val = 'z';
outportb(x,val);
}
See Also:
inportb()
outport()
This page created by ng2html v1.05, the Norton guide to HTML conversion utility.
Written by Dave Pearson